package routes

import (
	"github.com/kataras/iris"
	"irisfarm/routes/api"
)

// api路由加载
func ApiRoutes(app *iris.Application) {

	api.ApiHomeRoutes(app)

	// 设置api分组
	apiGroup := app.Party("/api")
	{
		api.ApiExampleRoutes(apiGroup)

		api.ApiAuthRoutes(apiGroup)
	}

}
